#ifndef QBINARYRPC_INCOMINGCONNECTION_H
#define QBINARYRPC_INCOMINGCONNECTION_H

#include "qtcpsocket.h"

namespace qbinaryrpc {
class Server;
class IncomingConnection : public QObject
{
Q_OBJECT
public:
  IncomingConnection(Server *parent, QTcpSocket *socket);
public slots:
  void readData();
  void disconnect();
private:
  Server *server;
  QTcpSocket *socket;
};

} //namespace qbinaryrpc

#endif
